﻿namespace Manhua3.SQLiteTable
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using Manhua3.Common;

    [SQLite.Table("comics")]
    public class SQLiteComic : BindableBase
    {
        private int _id;

        [SQLite.AutoIncrement]
        [SQLite.PrimaryKey]
        [SQLite.Column("id")]
        public int Id { get { return this._id; } set { this.SetProperty(ref this._id, value); } }

        private string _token;

        [SQLite.Column("token")]
        [SQLite.Indexed]
        public string Token { get { return this._token; } set { this.SetProperty(ref this._token, value); } }

        private string _title;

        [SQLite.Column("title")]
        [SQLite.Indexed]
        public string Title { get { return this._title; } set { this.SetProperty(ref this._title, value); } }

        private string _author;

        [SQLite.Column("author")]
        public string Author { get { return this._author; } set { this.SetProperty(ref this._author, value); } }

        private string _type;

        [SQLite.Column("type")]
        [SQLite.Indexed]
        public string Type { get { return this._type; } set { this.SetProperty(ref this._type, value); } }

        private string _coverUrl;

        [SQLite.Column("cover_url")]
        public string CoverUrl { get { return this._coverUrl; } set { this.SetProperty(ref this._coverUrl, value); } }

        private string _coverPath;

        [SQLite.Column("cover_path")]
        public string CoverPath { get { return this._coverPath; } set { this.SetProperty(ref this._coverPath, value); } }

        private string _provider;

        [SQLite.Column("provider")]
        public string Provider { get { return this._provider; } set { this.SetProperty(ref this._provider, value); } }

        private string _chapterUrl;

        [SQLite.Column("chapter_url")]
        public string ChapterUrl { get { return this._chapterUrl; } set { this.SetProperty(ref this._chapterUrl, value); } }

        private string _rssUrl;

        [SQLite.Column("rss_url")]
        public string RssUrl { get { return this._rssUrl; } set { this.SetProperty(ref this._rssUrl, value); } }
    }
}
